/************************************************************************/
/* GUI                                                                  */
/************************************************************************/
#include "GUI/TextMessages/TextMessage.h"

namespace TD_GUI {

   /************************************************************************/
   /* ctors and dtors                                                      */
   /************************************************************************/
   TextMessage::TextMessage() : BaseTextMessage() {

   }

   TextMessage::TextMessage(const TextMessage &rhs) : BaseTextMessage(rhs) {
      m_text = rhs.getText();
   }

   TextMessage & TextMessage::operator =(const TextMessage &rhs) {
      BaseEntity::operator =(rhs);
      m_text = rhs.getText();
      return(*this);
   }

   TextMessage::TextMessage(const Coord2D &textPos, const string &initString, const string &fontSource, 
      unsigned int fontSize, const Color &fontColor, renderType g_renderType) : BaseTextMessage(textPos, initString, fontSource, fontSize, fontColor, g_renderType) {

   }

   TextMessage::~TextMessage() {
      
   }

   /************************************************************************/
   /* Rendering                                                            */
   /************************************************************************/

   void TextMessage::render(SDL_Surface *const g_destSurface, unsigned int deltaTime) {
      blitSurface(g_destSurface);
   }
}